package cn.yajienet.data.elasticsearch.properties;

import cn.yajienet.data.elasticsearch.dto.DocumentEntity;
import cn.yajienet.data.elasticsearch.enums.RunMode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

/**
 * @Author Wang Chenguang
 * @Email wcg.chen@foxmail.com
 * @Date on 2021/11/13
 * @Version 1.0.0
 * @Description
 */
@Configuration
@ConfigurationProperties(prefix = "elasticsearch.data")
public class ElasticSearchProperties {

    private RunMode runMode = RunMode.AUTO;

    private List<String> documentScanPackages;

    private Map<String, DocumentEntity> documents;

    public RunMode getRunMode() {
        return runMode;
    }

    public void setRunMode(RunMode runMode) {
        this.runMode = runMode;
    }

    public List<String> getDocumentScanPackages() {
        return documentScanPackages;
    }

    public void setDocumentScanPackages(List<String> documentScanPackages) {
        this.documentScanPackages = documentScanPackages;
    }

    public Map<String, DocumentEntity> getDocuments() {
        return documents;
    }

    public void setDocuments(Map<String, DocumentEntity> documents) {
        this.documents = documents;
    }
}
